//
//  CustomCell.m
//  chollos2
//
//  Created by Juan Soler Company on 16/04/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "CustomCell.h"

@implementation CustomCell

@synthesize titleCell,distance,img;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setTitle:(NSString *)_title{
    titleCell.text = _title;
}
- (void)setDist:(NSString *)_distance{

    NSString *msg = [NSString stringWithFormat:@"%@%@%@",@"A ",_distance,@" metros"];
    
    distance.text = msg;
}
- (void)setImage:(NSString *)_img{
    
    UIImage *one = [UIImage imageNamed:_img];
    img.image = one;
 }

@end
